NullReference fix in RibbonService