grub2: fix empty file handling