Make empty view hidden when set

- If an empty view is not hidden first, it will never be shown
Merge pull request #22 from adamiredale/master

Make empty view hidden when set