Fixing stupid jpa bug, where a sum query returns null and not 0 when nothing is found