BAT segfaults when Password is missing from configuration

Fixes #216: bat segfaults when Password is missing from configuration