On the Luminosity Function of Galaxies in Groups in the Sloan Digital Sky Survey