Don't let overflow errors crash wrapped python methods (bug 892720)