(Bug 5012) Fallback to empty array ref
Merge pull request #348 from afuna/array-error-bug5012

(Bug 5012) Fallback to empty array ref