Fix the function to take into account the second argument even if it is called with not an error value. JerryScript-DCO-1.0-Signed-off-by: Istvan Miklos imiklos2@inf.u-szeged.hu