Fixes #24.

Make sure the object responds to the annotations selector before calling it.