Fixed PHP notice when checking user entity which is missing type property.
Merge pull request #6 from petertornstrand/master

Fixed PHP notice when checking user entity which is missing type propert...