radv: fix image_has_{cmask,fmask}() helpers