Fix many Notice in usermanagement

Fix many possible Notice and the bug that no message appear with
error_reporting(E_ALL) when you remove all Projects from an account.
(old: line 76, new: Line 95 to 101)