Fixed NPE in getMediaFileName()