websocket: safety guard when computing the list of connections

- avoid going further if connection is null -- unlikely to happen as len
  of the list is computed before

(cherry picked from commit 19e8a5618f86833995d17200267910e44471141d)
htable: initialize the value for iterator list index

(cherry picked from commit 853bb22836c888b19edc9db00edb1df0c0be0554)
dialog: proper de-serialization of expires value for a profile

(cherry picked from commit ab9d9a242ec60b820496794953610a84b303d2f3)
textops: fix not initialized variable for muti-part body

(cherry picked from commit f1178c4d0e12f7d7e05bd6551ec3a841f1f23055)