Fix migration failing when user has no projects
Context: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8554/diffs#note_21397900
- Fixed typo
- Fixed migration when there are no projects and path is nil
- Rollback if the path has been moved already and DB throws an error.