mediatek: fix wrong return code in platform_check_image()