Fixed invoking methods with null arguments.