Don't query discussion amount on non existing pages

This ended in a fatal error because no Title object could be created for
given id 0

Change-Id: Ibfa83ae369ac77dbd13a04dba5413f21bf9ec2c9
Merge "Don't query discussion amount on non existing pages"