Fixed a bug in the file history function in which an unlimited setting would prevent all but the latest version from being saved.

If the file version history setting is set to unlimited then it will not save the previous versions to the database when it is published. The result is that only the latest version is saved.  The fix is to check if the versionsToKeep is less than zero. (The setting is -1 if it is unlimited)