This is not standard or correct in American English either, though interestingly, German uses the same form for both situations ("ich wünsche, du hättest es getan" vs "du hättest es getan, wenn..."), so if that construction is more common in American English it's possible that it's due in part to the influence of German speakers.