Fixed empty array.

closes #2660