Fix core dump on viewing invalid package log