desktop-shell: fixing null pointer access

There is a chance after certain number of reboots
that ->output is NULL. I assume this is because ->panel
was not yet initialized and is read before written.

Tested on branch weston-imx-6.0.1 from
5 jobs for master in 2 minutes and 25 seconds (queued for 1 second)