Check if local node has identity role before searching

this was causing the first chef run on an allinone server to fail.
will return the local node hash if the role exists locally, otherwise will search

Change-Id: I7db000223c68a7aaa3732125b31ac2282bb21cca