Fix null collection crash.