Fixed validation of ll/near/bounds parameters in search function

Fixed validation of ll/near/bounds parameters in search function. Allow ll and near to be undefined if ne/sw are provided in the parameter list.