Suppress warnings for register-groups-bind with empty var-list

If (for some reason) the var-list is empty, there is no code generated
that uses the reg-starts and reg-ends variables, and hence they become
unused.

And without warnings, the substr-fn is also not necessary.