Fix bug #3277 (findCirclesGrid failures):

`findHomagraphy` can return empty `Mat` in master branch, so we need to check it before usage.

Related issue : http://code.opencv.org/issues/3277