Make Pinny data-attribute initialization more robust