Catch vbRepository index out of bounds exception