Fix Bug 1031335 - Don't log undefined variables