Remove error popovers before displaying another

If the `retval.msg` changes after an error popover is displayed, the new error message will not be displayed because the original popover is still displayed.

Also changed the declaration of `hidePopovers` to remove the unused parameter `msg`

This request does not contain a minified update.