Combat 'Reference errors' in 'define' function sniffing

Though the pattern of passing in variables like this is hard maintain, this prevents Reference errors from being thrown for now.