throw nicer error for injection into nil objects