Added ability to distinguish between error and not found when looking up media files