A bit more error resilience for handling data received from the backend

See #339