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.

This is related to issue #4244

This might be the wrong fix, the issue may be instead that this attribute isn't getting set nominally, but I figured I'd open the issue with code.