libsmack: fix potential null pointer dereference

Check input pointer parameter of smack_new_label_from* functions