Add error handling to GetDefaultValue to return the type's default value if an invalid expression is encountered