Fixed a php notice resulted from empty role argument