Fix potential ClassCastException when an Error (i.s.o. an Exception) is
raised remotely. Thanks Rick!