Fix bug 1296595, empty password retrieved from db is not equal to ""