Fix for node view in discovering state with nil method exceptions

As requested on **bnc#856768** this pull request fixes exceptions for methods on a nil object while the node is in discovery mode. It targets on the node detail view on the dashboard.