Issue #2466389 by martin107, socketwench: Fixed editing a flagging to return 404 when no valid flagging entity is found.