Fix for course pages after node is deleted