[BUGFIX] glob() may return FALSE and lead to PHP warnings

Change-Id: I406e83967948720d3728720f3608b29865ec4186
Reviewed-on: https://review.typo3.org/28882
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers