DirectoryIterator throws RuntimeException on empty string

Fixes zend/bad/ext/spl/tests/DirectoryIterator_empty_constructor.php but I can't move it because of the different representation of uncaught exceptions

The included test is a duplicate of the one above, but with a try-catch block