[PATCH 4.14 31/37] ubi: Fix failure attaching when vid_hdr offset equals to (sub)page size