Fix for association drawer with no 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