Fix error checking of fread() in libbootimg_init_load_parts

* Refuse to load too short boot.img, they are corrupted
[0.1.12] Return EINVAL when trying to dump blob which was not loaded