Fixed error checking
This merge requests updates bootloader
to use the most recent changes in uefi. Probably should give a closer look at this, to make sure it works perfectly fine. Given that it is my first time attempting to merge to this project.