Add early out in upgrade if no deps are specified

Fixes a bug with the 'comma' formatting mode that threw an error if no
deps were present.