admin - bug fixes

In the reports interface, if no predefined jobs were present (inventory
tab), a js error resulted.

Fixed a bug in the media lib causing images to not appear. Due to
accidental update by mikeC yesterday.