Tentative fix for the headless mode

A variation of this should fix the problem reported on IRC: Eyesis Correction would fail with a `VerifyError` in headless mode.

Unfortunately, there was no easy way to reproduce, so I have no idea whether this actually fixes the problem or even introduces more.