Fix automatic semi-colon insertion

Fix automatic semi-colon insertion in var statements without initialisers.