Fixed issue where it would try and execute even if no rules were found in the file.