Fixed issue in invite user mail handling