Add assert to silence Xcode static analyzer