The influence of capillary effects on the drainage of a viscous gravity current into a deep porous medium