Fix EZP-21238: Error when an image alias isn't found

The catch block was incorrect (missing use statement), and for some reason, the extra arguments when throwing the exception were causing this error.