Coverity nits in webserver code

Should fix CID 1168020, 1167490, 1167489, 1167488, 1126082.