unittests: Media: Ensure we don't read a nullptr value
unittests: Media: Ensure we don't read a nullptr value

This mostly fixes cppcheck warnings about value not being read

chouquette/medialibrary,chouquette/medialibrary,chouquette/medialibrary,chouquette/medialibrary