Fixed bug when searching for SystemCodes with empty parent key