Update wakup class

Moves the 'empty queue' to after the startup check.
As discussed in PR 718 (https://github.com/openhab/openhab/pull/718)