Added NPE protection.
Fix to http://jira.diamond.ac.uk/browse/DAWNSCI-932
Merge branch 'master' of git@github.com:DawnScience/dawn-ui.git