Remove assert which caused failing tests on release builds.