Fix wrong "undefined" comparison

A little fix of previous commit on autocompletion, where a != was used
instead of a !==