Fixes #3202: change check on inventory from post to pre unmarshal, add a check about MACHINEID existence
Merge pull request #11 from fanf/bug_3202/dev/if_machineid_tag_is_missing_dummy_one_is_used

Fixes #3202: change check on inventory from post to pre unmarshal, add a check about MACHINEID existence