This patch fixes #3650 and slightly reverts the changes of #3594. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu