Improve exceptions raised by print primitive
Make get-local instruction return null in not found case