[BUG] Fix invalid memory reads when GC is on

As described here: https://github.com/phalcon/cphalcon/issues/469#issuecomment-21536424