Bug 18146 - Exception generated when user enter wrong Git credientials

Fix an exception, credentials dialog returning ok for both cases.