http: Check for empty path and use "/"

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

Change-Id: I5f3cac958d5d179dc5dbe08ad60928b59c7af5b5