Fixed memory leak of SplDoublyLinkedList::add() when set invalid index

When debug enabled, these tests failed:
ext/spl/tests/SplDoublyLinkedList_add_invalid_offset.phpt
ext/spl/tests/SplDoublyLinkedList_add_null_offset.phpt
ext/spl/tests/dllist_013.phpt