Prevent the errors caused by empty results [PD-513]

All tests on myjobs/microsites pass.