Added two asserts to catch a segfault
Added two asserts to catch a segfault


Former-commit-id: 01e23c4a91ef42b3745510eb96e617e7ef24891a
darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide