bug_report.php: fix warning when not using attachments

When attachments are not used, 'ufile' is not defined, so $t_files
becomes NULL (line 150) causing the 'Invalid argument supplied for
foreach' warning.

Fixes #17322