fix splint issues

This PR makes the code processable with Splint.

Tested using Splint 3.1.2, Mac OS X.
Strictly speaking yes, but I think the above code is more readable and also not relevant for performance (this is a cleanup routing making sure that old, incomplete indexes are deleted when the convert/press step fails).