Use getOneOrNullResult
Adds test to check a 404 is thrown if a non-existant slug is passed to MediaRepository