Don't put nil in error dictionary user info

If input_character is nil, add `[NSNull null]` to the dictionary not nil.

Fixes warning from Jenkins Clang analyser 2.7.5 (not yet in Xcode).