Fix backup creation and restore for specific Rake tasks
Running gitlab-rake gitlab:backup:create
works, but running gitlab-rake gitlab:backup:repos:create
fails due to:
NoMethodError: private method puts' called for nil:NilClass
Closes #40617 (closed)
Edited by Stan Hu