save the account only if it has been created
fixing null handling
Merge pull request #218 from owncloud/fix-accountscontroller-null

save the account only if it has been created