FP: flush m_code_level & check emptyness of m_end_offsets

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