The old `jerry_value_has_error_flag` function was used when the #2249 PR was merged. Replaced with the correct `jerry_value_is_error` call. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com