Fix null point exception in rank list export function

@pfctgeorge