I had a similar situation. It was clearly a dev bug. I’ve overridden the wrong method:
public void onSaveInstanceState(Bundle outState,
PersistableBundle outPersistentState)
Instead a correct one:
protected void onSaveInstanceState(Bundle outState)