Fix for issue #8 (null values being serialised to a Properties instance)