Avoid a traceback when using accelerate

This bit of code is attempting to access accelerate_inventory_host,
which may not have been set/created. This will cause a traceback.
Instead use getattr with a fallback to False.
Merge pull request #5086 from j2sol/fix-accelerate_inventory

Avoid a traceback when using accelerate