Fix potential html injection when the database server isn't available (bug 26164).