fix Issue 13784 - Wrong code with modulo operation and optimisations enabled