WICKET-5538 When using Component.setDefaultModel, only detach the previous model if the new one is different