http: Check for empty path and use "/"
http: Check for empty path and use "/"

Otherwise we end up with malloc(0) and all sorts of odd stuff happens

Change-Id: I5f3cac958d5d179dc5dbe08ad60928b59c7af5b5
Reviewed-on: http://review.couchbase.org/33105
Reviewed-by: Brett Lawson <c8c4369773d7d7226e031f0c4af62e3f38a08510@gmail.com>
Tested-by: Mark Nunberg <e7d42768707bf23038325b0b68d4b577e5f6064a@haskalah.org>

couchbase/libcouchbase,uvenum/libcouchbase,uvenum/libcouchbase,mody/libcouchbase,signmotion/libcouchbase,senthilkumaranb/libcouchbase,avsej/libcouchbase,mody/libcouchbase,mody/libcouchbase,kojiromike/libcouchbase,mnunberg/libcouchbase,mnunberg/libcouchbase,PureSwift/libcouchbase,couchbase/libcouchbase,senthilkumaranb/libcouchbase,couchbase/libcouchbase,uvenum/libcouchbase,maxim-ky/libcouchbase,PureSwift/libcouchbase,signmotion/libcouchbase,senthilkumaranb/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,avsej/libcouchbase,maxim-ky/libcouchbase,PureSwift/libcouchbase,senthilkumaranb/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,mnunberg/libcouchbase,signmotion/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,maxim-ky/libcouchbase,mnunberg/libcouchbase,mody/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,maxim-ky/libcouchbase,avsej/libcouchbase,kojiromike/libcouchbase,kojiromike/libcouchbase,avsej/libcouchbase,PureSwift/libcouchbase,uvenum/libcouchbase,mnunberg/libcouchbase