Github: Fix exception

'base_ref' is always *None* for me, I'm not sure if that is ever needed.