diff --git a/packages/ember-htmlbars/lib/hooks/get-root.js b/packages/ember-htmlbars/lib/hooks/get-root.js
index 45fd883da77..d122181fcf2 100644
--- a/packages/ember-htmlbars/lib/hooks/get-root.js
+++ b/packages/ember-htmlbars/lib/hooks/get-root.js
@@ -31,7 +31,7 @@ function getKey(scope, key) {
}
let attrs = scope.getAttrs();
- if (key in attrs) {
+ if (attrs && key in attrs) {
// TODO: attrs
// deprecate("You accessed the `" + key + "` attribute directly. Please use `attrs." + key + "` instead.");
return attrs[key];