It's because of the uefi-firmware script. the menuentries were enclosed by an if statement. But after removing the menuentries, the if statement is empty. This leads to the error. You can activate View -> "[x] show placeholders", and then remove the "script code" entry of "uefi-firmware". That should fix your problem.
It's because of the uefi-firmware script. the menuentries were enclosed by an if statement. But after removing the menuentries, the if statement is empty. This leads to the error. You can activate View -> "[x] show placeholders", and then remove the "script code" entry of "uefi-firmware". That should fix your problem.