[MIPS] Make get_frame_info() more robust