Trigger: Fix empty command detection with Python 3 (lazy filter).