Demote Application::IsHeadlessModeRequested to local hack

Change-Id: I3ae51b8c57e70593153805e5c7c139573c543b5a