Do not index into zero sized vector
refs #2435
Merge pull request #2873 from permcody/fix_debug_error

Do not index into zero sized vector