Make the 'debug' app option optional in template service provider