Don't bother checking for null and undefined when an earlier branch of the if statement already did that.
Make ImmutableError message more descriptive.