Added an assert to help static analyzer.