Handle all possible subscript errors