Fix IE 8 complains for instanceof on non-function

IE 8 expects the left side of an instanceof expression to be a function. Since stickTo
could be a string. Protect against that case and also create a flag for later checks.