Polymorphics don't necessarily have a type set.  Check before using
it as a key
Merge pull request #30 from ScotterC/belongs-polymorphic-nil

Polymorphics don't necessarily have a type set.