strcut(): Make sure we are cutting a string.
#175: Add error checking to stack_element_get_int_data().