#1278 Tern now overwrites autocomplete only if its setting is true.

Fixed the Tern overwrite issue as per #1278