Fix undefined method 'empty?' for URI:HTTP on 1.9.3