See: https://github.com/cloudbees/groovy-cps/pull/91
Fix ready for review: https://github.com/cloudbees/groovy-cps/pull/98
A fix for this issue was just released in Pipeline: Groovy Plugin version 2.72.
Stuart Rowe Thanks for fixing this, sorry for the delay on getting it merged+released!