Do not skip invalid geometry instead use the algorithm applied before QGIS 2.4 (when pointOnSurface was not available. A new checkbox should be added to the user interface, try to generate centroid in case of invalid geometry too.
Reported by Richard Metcalfe.