Issue #2844293 by swentel: Manually calling $account->delete() will throw an exception if the user has nodes in an anonymous environment with node access enabled