riemann: Do not crash without attributes() set

When using a riemann destination, do not crash when no attributes are set.

I think the check should be within the private function