Fix an issue that RTF fails to run some test cases

@ikeough 

If a test case does not belong to any category, the Category property will be null. An attempt to access the property will throw an exception and the test case will not run. 

Also when the category information is read in, the first test case in the category will be set with a category of null by mistake.

This submission fixes the two errors.