Handle error where no vector layer is found