Set profile to user's default when reporting issues

The default profile was not picked up before this, because the caller
(bug_report_page.php) actually sent '0' as profile id to select, while
the print functions did a strict check for ''.

Fixes #9460

Backport from master 6baf7650fe321a149302c64682f94dbdb2b51b3a