Prevent a condition where window title might be empty.