Catch zero-length Arrays instead of ICE

https://d.puremagic.com/issues/show_bug.cgi?id=11925

If it's all good, I'll add the tests to the testsuite.