Added null checks to Format Checker to prevent out of bounds errors