The Bug:
When you go through the Nether Portal and out of it, you don't lose the effect, which is working as normal.
However, when leaving the end after defeating the ender dragon, you lose all the effects you have on you.
(This affects to the new effects, Bad Omen and Hero of the Village, and all potion effects).
Duplicate of MC-6431