Remove duplicates from attributes list

In production the hook seems to be called several times which causes attributes to be duplicated.
This fix prevents that duplicated attributes are passed to the front-end until the main issue is solved.