Make js-git exit more gracefully when target refs don't exist