FilesystemExtender: Fix ArrayIndexOutOfBoundsException issue