FP: flush m_code_level & check emptyness of m_end_offsets

This fixes https://github.com/DHrpcs3/rpcs3/issues/349
humm what do you think the check here would be approriate ?