[TIMOB-12941] Fixed Database returning _undefined_ if results were 0