Issue CRM-12775. If we are in CLI, do not fail for lack of ability to insert to HTML HEAD.
Merge pull request #974 from GiantRobot/CRM-12775

CRM-12775. Don't fail for theme stuff when not themeing.