Make IsHeadlessModeRequested hack work for LOK

Change-Id: I30bf474fc44b122c8b7218e187c822a8784783fd