RA-493 - Fix for NPE if you have not specified to create a registration encounter