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.
I don't think it's the good description