Fix for issue 836.
When plugin initialization fails properly reject the deferred queue and
propagate (and handle) undefined as evaluator return value.
Fixed plugin loading for other languages as well.
merge ildipo/issue-836 for critical fix