(I'm guessing that's the reason this bug appeared, someone updated `titleText != null` to `!==` so it doesn't check for `undefined` anymore)