Check for absence of res.connection

Previously we were checking if the connection was writable, and if not removing it from the spike, now we check if the connection even exists, and if not remove it from the spike, if it does exist we implement the same logic as before, checking if it's writable.

This fixes the issue that caused a restart at approx 12:35 today