Fix for remove amendment script

refs #8000