More checking of the media_file parameter, also check for the parameter given but only containing whitespace. Added more tests.
fix typo