[bugfix] Check if $data is null

Solve problem with Entity Collection with translations.
Merge pull request #44 from krixer/changes

Form collection with translations throw FatalError on GedmoTranslationMapper