Fixed SQL exception which occured on duplicate coupon code

When creating a coupon, if the entered code already exists, an exception is thrown and displayed to the user instead of a meaningful error message.

This PR fixes this.
In fact you invert the description between checkDuplicateCouponCode and checkLocalizedDate methods.