fix TypeError when attr force field not exists
fix TypeError when attr force field not exists: a task in life-science-SWE1.0 (Harbor dataset). Title: fix TypeError when attr force field not exists
The task
**Title:** fix TypeError when attr force_field not exists
Part of scalingX/life-science-SWE1.0.