Moved stack maintenance till after potential error occurrence in
evaluation logic for SET_CODE, SET_SHARED, and SET_PROTO.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>