Run max_length option only if slug is a string