Fix Omeka 2.x compatibility