Fixed bug #68128

Fixes an issue that was introduced in d81ea16ef14735b97f22702ca1a78c3674fd987e

`RegexIterator::accept()` will now accept non-empty arrays instead of trying to convert them into an array.