Update global_motion.cpp

An extremely rare case where, for numeric reasons bestM finds more inliers than ninliersMax. 
This RARE case causes memory corruption and a nasty seg fault.
Merge pull request #2845 from shaibagon:patch-1