Checkmk Werk 13506: Fix possible unhandled exception if site connection is encrypted