Don't crash on getting an output for a client when there is no resource for the client

Currently calling QWaylandCompositor::setScreenOrientation() crashes for me. While this doesn't fix the root cause (missing resource) it does fix the crash.