Fixed an issue where a cert in the expiry range would cause the program to exit