Fixed server error when no media_file parameter is provided

Fixed server error when no 'media_file' parameter is provided and return a HttpResponseNotFound response instead and add a test for this. The media_file.split('?')[0] is removed because it seems unnecessary, other tests still pass.
But this is not the same?