[#38] Add guard to protect from introspection of object that may not be a dictionary.