Fix: tools: Prevent a potential memory problem in crm_resource.
It's technically possible for len to be 0 here, which would mean that
strv would have no allocated size, which means that strv[0] would crash.
Practically, I don't think this would ever happen which is why I'm just
using an assertion here.
While I'm at it, use pcmk__str_empty a few more places nearby.