FIX #1267 eval() return false in case of syntax errors

This modified to return false if eval() ends with syntax error.
It fixed issue #1267