Properly allow '0' as a workername or password

This fixes #347 as recommended at

http://de3.php.net/manual/en/function.empty.php

We allow anything else than an empty string.
Merge pull request #366 from TheSerapher/issue-347

Properly allow '0' as a workername or password