Check to ensure that selinux_handle is populated before using

Change-Id: I6de4c5db3e3183229d7029fc72b957c7ef61f23a