fix rare lua error when right clicking player

Fix a rare lua error that could occur when unit was nil and
rightclicking a memberframe to get to the contextmenu.