Deal with rare footprint-related crash. Fixes #1204.