Fix error on command exceptions without a valid cause property.