Update BaseArrayHelper.php

Recursive method call must have the same parameters as the first call.
Fixes #5925: `ArrayHelper::htmlEncode()` does not work properly when the value being encoded is a nested array