Fixed invalid Safari and IE 8/9 Cookie paths.

By default, the cookie path was being called as 'undefined' which
worked only in Firefox and Chrome, the fix cleans up the 'undefined'
error to just return as an empty string.