updated uses of ElggEntity::getAnnotations() and fixed bugs introduced in the API update