I would have said...silicone. What is wrong with applying masking tape to the area to mask off the areas you don't want to get silicone on, then apply a bead to the gap. It doesn't need to go in the gap, just seal it over.
Don't apply too much, then smooth off with a wet finger...