Check that keywords and tags data exist before displaying them, and
free them when no longer valid.