Avoid NPE for mapping queries with null source EID