app: remove messages for unknown apps from the queue