Add br_img_is_empty to C API in case imdecode fails