Fix invalid memory read in Syck extension

This could cause a segfault because an invalid pointer would be read.