fix bug #3277 (findCirclesGrid failures):

findHomagraphy can return empty Mat in master branch
Merge pull request #1497 from jet47:fix-bug-3277