Fix fatal error (Bug #12910).
[jan] Fix fatal error in LDAP account portal block (Bug #12910).