return 404 instead of throwing exception for files that can not be converted to html/pdf