Fix bad file bug

Added an if statement so the server wouldn't crash on a bad file (not ending in .cfr.)