allow null id to be send to findEntity method