fix crash in model construction from finite domain theory

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>