Fix Phraseanet error handler