Fix 500 when the `gems` parameter is excluded from the dependencies call

I've noticed Bundler does this call without any parameters and then again with some comma separated gems. This prevents a 500 when it does this.