core: disallow removing last profile for parent

Change-Id: Ic1b53e090f3cce4b4831af7f403e8a219e00c7b7
Signed-off-by: Gilad Chaplik <gchaplik@redhat.com>