BUG: allow get default value upon IndexError, GH #7725
Merge pull request #7728 from dsm054/fix-get-indexerror

BUG: allow get default value upon IndexError, GH #7725