Added handling of not-defined variables in methods invocations.