Workaround for missing exception in php5-librdf