WICKET-5176 StringResourceModel doesn't detach model in some cases

Make sure that StringResourceModel detaches its wrapped model, parameters and defaultValue even when the LoadableDetachableModel is not attached.