Fix issue if Array prototype has been extended