Fixed syntax error.
Fixed querying rates with unset project or activity.
Fixed finding rate object.