WICKET-5754 (String)ResourceModel's defaultValue could be an IModel<String>

(cherry picked from commit c4db9222effe80c49c20bd18f3e3c6773b8c8618)