Fixing reference to titleOptions when no title options are defined.