Test for undefined values when setting defaults on url object