Reset error message, button label, etc when modal dialog hidden. Don't wipe delete message id as user might submit deletion again. Issue: #653