add a test when parsing an empty document with nested properties.
fix a bug where an exception was thrown when parsing an emtpy hash with a wrap set in the representer.