Fixes #266 bad value for extendsModel doesn't generate error.