Fixed bad find() call and do a proper 404 when a resource can't be loaded

Main code rev. 1935