Attempt to fix runtime issue with hibernate uniqueResult returning null for rowCount projection.