Fixed a crashing bug when trying to retrieve empty topic array