Update ModelToIdTransformer.php

This is to fix problems with entities with 0 as id, empty will return true if u give 0 as parameter