BUG #14880: Fix which properties are saved in python state.

The user option to select which properties are saved in the state file
was being ignored. Fixed that.

Change-Id: I814d7e27315309448ea73c3aa20a65554d1dca09
Merge topic '14880_fix_state_properties' into next

39d8de6d BUG #14880: Fix which properties are saved in python state.