Fix #48358 add() method for SplDoublyLinkedLis