m-settings: Fix the crash with empty settings
Add a null check when iterator gets the value to detect the end of the JSON object, this will ensure the rest of the code that operates on the value is bypassed.
Still it must be noted that an empty setting screws up the following settings and behavior is undefined, this is the limiation in the spa-json parsing.