fix #527: unable to delete project when use_forum = no in config.ini
port from Branch_5_2: fix #527: unable to delete project when use_forum = no in config.ini