Update M2ReleaseAction.java

JENKINS-13465
Merge pull request #9 from glandais/master

Proposed fix for JENKINS-13465