Fixes #4796: Node API V4 now fallback to api V2 is query is missing

http://www.rudder-project.org/redmine/issues/4796

Mkae the partial function of V4 fallback to V2, so if the function is not defined in V4, it fallback to v2