Fix tests - test for _entity before using it
Fix tests - test for _entity before using it

ngageoint/hootenanny-ui,openstreetmap/iD,kartta-labs/iD,openstreetmap/iD,kartta-labs/iD,AndreasHae/iD,AndreasHae/iD,kartta-labs/iD,AndreasHae/iD,digidem/iD,ngageoint/hootenanny-ui,ngageoint/hootenanny-ui,openstreetmap/iD,digidem/iD,morray/iD,morray/iD