Only undef id if its defined. i.e. only on Ruby 1.8