[1.4.x] Users account.php updated to avoid E_WARNING

See https://github.com/zikula/core/pull/1920, same issue but now code for 1.4 adapted
Merge pull request #1922 from espaan/patch-11

[1.4.x] Users account.php updated to avoid E_WARNING