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