Safer dict.get in queues.py

This fixes a potential problem when doing a double `get` on a dictionary because `dict()` objects fallback to `None` when a key look up fails, so a `.get` on `None` would raise an exception and the rest of the `.get()` would not work.

It also removes an unnecessary fallback to `False` as `None` in Python will evaluate the same for that logical condition.