Fixed media-dialog caching issues. Closes #352
Merge branch '2.2.4' of github.com:PiranhaCMS/Piranha into 2.2.4