issue 67: NoSqlManyToOne relation to entity with UUID as ID fails and some other minor NPE check