don't call id on nil - fixes #177