newer gtk release are checking that the error pointer is NULL, avoid crash.