Fix for Issue 3409

http://code.opencv.org/issues/3409