fixing bug where Resources created in response to a 'created' message were not wrapped in a Resource object