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

As per http://issues.civicrm.org/jira/browse/CRM-12775 - drush civicrm-upgrade-db fails when it doesn't need to.