name+security: Fixing bugs with empty name component comparison and failure handing in OSX tpm implementation

Change-Id: I5105bc87b382d7e515538fef6922f3516afc3bff