Restore optionality of loginWithPassword/changePassword callbacks.

Fixes a regression in 0.8.2.

Fixes #2255.