utils: Check for valid data before calling rest_xml_parser_parse_from_data()
In the case of HTTP errors, such as a invalid TLS certificate, the returned data is NULL, and the code in librest does not make the check, causing a segfault.
Signed-off-by: Eduardo Lima (Etrunko) etrunko@redhat.com