fix crash in model server when you attempt to create an unreasonably small model

fixes this issue: https://worklist.net/19699