Crash happened in ED_view3d_calc_zfac and happend in cases operator was invoked from a region different from RGN_TYPE_WINDOW. For a transformation zfac is only used in convertViewVec in cases region is RGN_TYPE_WINDOW, so solved by just adding extra check in calculateCenter for this particular case.