Fix limit option for urlfunc.

Passing `false` should set the limit to false. Added an != null check to make this work.