BUGFIX for: NPE when invoking method without param

When the method without parameter was invoked, a
NullPointerException occured. This commit fixes this behavior.