Add missing error checks to API functions (#3190)
Add missing error checks to API functions (#3190)

JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
bzsolt/jerryscript,akosthekiss/jerryscript,bzsolt/jerryscript,zherczeg/jerryscript,zherczeg/jerryscript,bzsolt/jerryscript,zherczeg/jerryscript,jerryscript-project/jerryscript,akosthekiss/jerryscript,jerryscript-project/jerryscript,dbatyai/jerryscript,jerryscript-project/jerryscript,akosthekiss/jerryscript,robertsipka/jerryscript,zherczeg/jerryscript,bzsolt/jerryscript,jerryscript-project/jerryscript,dbatyai/jerryscript,robertsipka/jerryscript,jerryscript-project/jerryscript,bzsolt/jerryscript,dbatyai/jerryscript,zherczeg/jerryscript,akosthekiss/jerryscript,dbatyai/jerryscript,akosthekiss/jerryscript,robertsipka/jerryscript,robertsipka/jerryscript,dbatyai/jerryscript,robertsipka/jerryscript,robertsipka/jerryscript