Check for nil in advice for ac-complete

This fixes the "split-string: Wrong type argument: stringp, nil" error when ac-complete is called and there are no completion candidates.

The fixed error breaks ac-js2-expand-function (from the ac-js2 package), which calls ac-complete internally.