Update iterator because recursiveIteratorIterator::key() used with a recursiveDirectoryIterator return null on an empty iterator with PHP 5.5 instead of 0.