LoginUtils.getAccountLoginDetails(): Avoid a null dereference.

This was caused by the recent commit to avoid copy/pasted code.