replace nil return value with empty string in display_categories method: