Demographic saving discharge preference

Didn't take it into account which would result in error if page was
saved with no discharge tab, now fixed