front: Fix possible null pointer exception.

Seems to vary by device.