Skip UI font check in headless mode.

Change-Id: I249b5394524bab497d421edb7dae08118c5586c5