don't try to unregister functions from objects that aren't loaded

Signed-off-by: Seth Jennings <sjenning@redhat.com>