Fix for comodification exception when unloading chunks

Signed-off-by: Ross Allan <rallanpcl@gmail.com>