fixed possible runtime error
bixed cv::boxFilter
Merge pull request #2839 from ilya-lavrenov:tapi_fix