Potential fix for RESTEASY-1036

Potential fix for RESTEASY-1036 NullPointerException when connection keep alive is false