Bugfix: fixed faulty error string comparison.

This fixes a minor but annoying bug where "nil" error spams the application output when the queue is empty.