[3.12] community/synapse: fix fetching events from remote servers that are malformed

Closed Leo requested to merge Leo/aports:3.12-synapse into 3.12-stable

Merge request reports