PA comment #8 & #9 by sleepingmonk: Fix creating Object from empty value and remove unnecessary hook_uninstall().