[NOBTS] fix a bug about report

Not logged in user can open test report page, but the report data can
not be got.