You can use another solution: ELInstance.getErrors() returns all errors inside #{}. It can be most safe to dismiss model completely if there is just one error, so that you may in enumeration over ELInstance in BundleMap.getBundleValue(), check i.getErrors().isEmpty(), and if it is not empty, do nothing. That could be quite useful, if Visual editor underlined regions with errors in EL, in the same way as in text editor (that could be a separate feature request).
You can use another solution: ELInstance.getErrors() returns all errors inside #{}. It can be most safe to dismiss model completely if there is just one error, so that you may in enumeration over ELInstance in BundleMap.getBundleValue(), check i.getErrors().isEmpty(), and if it is not empty, do nothing. That could be quite useful, if Visual editor underlined regions with errors in EL, in the same way as in text editor (that could be a separate feature request).