Update protocol.py so that None filter doesn't make query results empty