core: disallow removing last profile for parent

Change-Id: Ic1b53e090f3cce4b4831af7f403e8a219e00c7b7
Bug-Url: https://bugzilla.redhat.com/1084930
Signed-off-by: Gilad Chaplik <gchaplik@redhat.com>