Don't assume $root scope is present (scope might be isolated by custom directive)