Add up-to-date review_state information from new version table
Currently the XML is built of the information of table
tx_ter_extensions, but the field
reviewstate is not updated when the Security Team is marking versions as insecure.
This information is only in the new table
This patch fetches the correct information and puts it into the generated XML.