Check errors after rsvg_handle_close()
This is a continuation of !20 (closed).
In librsvg 2.46, close() will be the place in the write()/close() APIs to check for errors, since internally they buffer the entire document in case it is compressed.
A subsequent MR will be about using the streaming API instead, which does not require that kind of buffering.