FP: flush m_code_level & check emptyness of m_end_offsets

This fixes https://github.com/DHrpcs3/rpcs3/issues/349