So far a freed variable was tested during error flag inspection. This patch fixes it and #1972 as well. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu