fix symbol_table_get()

The previous implementation initialized an internal variable to -2
instead of -1. The function would not do what it was supposed to do.
This resulted in the function not finding symbols when they exist, and
returning -2 in all cases (no matter whether the symbol exists or does
not exist).