Thermal paste will be good choice to fill the gap. Yes I agree their will be some heat loss will take place. As the gap is not fully filled and air will take place Air will reduce the heat transfer efficiency as air has very low thermal conductivity value