Prevent getEntitiesByIds to deliver data on empty Object[].

Title says it all