Handle empty Ref() objects a bit more gracefully