Fix for issue 4602.

My go on a https://github.com/adobe/brackets/issues/4602
Please review.