MB-22250: move checkLackOfParam function out of if statement
MB-22250: move checkLackOfParam function out of if statement

Change-Id: Ib1faa01470b582a8d6bb825387a01b776871ead3
Reviewed-on: http://review.couchbase.org/81295
Tested-by: Pavel Blagodov <596b71e626fc58dbdad141b817770e3e4810bb9b@gmail.com>
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Michael Wiederhold <a17fed27eaa842282862ff7c1b9c8395a26ac320@couchbase.com>

membase/ns_server,membase/ns_server,membase/ns_server,membase/ns_server,membase/ns_server,membase/ns_server