skip unexported fields for bindings

Just a little check so it does not panic if the struct contains an unexported field.