Make empty view hidden when set

- If an empty view is not hidden first, it will never be shown