fix undefined method split for nil:NilClass in organizations routes