WICKET-5455 Allow access to the JS ResourceReference of AbstractAutoCompleteBehavior

(cherry picked from commit f565f6de776aaadcba2ff0e384cd62558dbc6be9)