Fixed errors on autocomplete element when a block has not been selected yet