Throw error if argument is undefined to item() or getPropertyValue()