Replaces several NSAssert() with NSParameterAssert().