Globular clusters vs dark matter haloes in strong lensing observations