throw on attempting to inject undefined

came across this today and was slightly confused - figured a friendlier error
on the "yo cheapskate, you didn't mean to do that" tip might be better than
TypeError: Cannot read property 'scope' of undefined