myncc fixes for zero variance

Improved handling of zero variance in regions in templatematch search
window for myncc.