Fix call to deprecated method

Fixed #14, the method 'deprecatedFeaturesCount' does not exists anymore.

Also made sure there is something in the output buffer before calling end_clean to avoid a warning.