Raise an error when trying to set a nil index in table