Bug fix for Item.factory when the @raw_item does not have a 'type' key.

There are a couple event responses that have a #source without a 'type' key and it was blowing up here. This will make it behave correctly.