Glob::glob() should throw an exception on error

this fixes #3949.

It also makes the second argument `$flags` optional.

Please note: This could be a BC break as `Glob::glob()` no longer returns `false` on error and instead throws a `Zend\Stdlib\Exception\RuntimeException` but the ZF2 doesn't check against `false`.