Handle null pointer errors from reading topics