fixed release bug when released element is not valid
Merge pull request #3898 from sebv/sebv-release-fix-2

Fixed release bug when released element is not valid