[ticket/12007] Default last_result to 0 instead of false

PostgreSQL does not map null/false to 0 and thus this variable causes
an error.

PHPBB3-12007
Merge remote-tracking branch 'dhruv/ticket/12007' into develop

* dhruv/ticket/12007:
  [ticket/12007] Default last_result to 0 instead of false