Protection against nil title or domain crashes.

Change-Id: I26aa76563b8d2cbee9efa64cebdd6d1a1b7b4ae2
Merge "Protection against nil title or domain crashes."