Don't Try To Calulate Length Of Nil Strings In HttpClient

We were trying to calculate the length of nil string in the
Lua HttpClient in a couple places. This would cause the check to
exit with a somewhat cryptic status. Fix to check for nil before
trying to calculate length.