Do not index into zero sized vector

refs #2435