make sure the changelog_limit is an int (or None) and not something else

Fixed https://bugzilla.novell.com/show_bug.cgi?id=825158
Please look at this bug for the details.