Make sure we're not passing an undefined into the jquery extend function