this might be because you still declare the property in the configuration file but with empty value, so the handler will consider it as existing property but with empty string as value. So make sure that optional fields that you don't use are removed (or commented out) in the config file.
HTH