Return 404 instead of stack trace when nonexistent multimedia url is passed

Fixes 77512