Fix for null dateTime import bug + add entityManager property to query result.