This commit adds a check to the dynamic inventory script when parsing extra values

(cherry picked from commit 767aa6229dfb6e907bd2473e1f8efe235ebed44a)

Addresses issue: #458