Fix null reference when going to definition.