Catch nil in section_class method