removed the discount value bug

check error handling if the discount value is not an integer
Merge pull request #4479 from edx/muhhshoaib/Ex-40-Coupon-discount-value-add-validation

Fixed the  discount value bug