Not sure this would fix too much. In many cases you're using Swiftcast before Raise/Resurrect, so even if it doesn't allow you to cast it you've still wasted your Swiftcast cooldown unless someone else is dead. And if you didn't use Swiftcast, you can tell they've been raised by someone else long before you finish casting.