[BUGFIX] Don't call path on nil media_file

Small oversight.