chromium.py: Fix error condition when updating phase