Fix package attribute update

Keys for custom attribute categories installed by packages are not currently updated. Continues work from 19c8e53dc07815da958ee133e4c9f7d1afd92b3a