BC Break, fixes JSON encoding & decoding for empty results.
Merge pull request #1090 from jails/bug/media

BC Break, fixes JSON encoding & decoding for empty results.