Fix for association drawer with not visible fields.

Make sure the publish page won't crash if no visible field is found when we are creating the associations drawer.

This PR implements things discussed in #2130