Really fix #3376

Thanks to  Grischa Zengel for spotting the semi-colon at the end of the "if" line that was the real cause. Please also back merge this to 2.1 branch.
Merge pull request #896 from phil-davis/master

Really fix #3376 Alias Edit does not display correctly