Looks like Logic sends a reset message (Modulation -> 0) at playback stop, so could you try disabling this setting (Settings->MIDI->Reset Messages->External MIDI) ?
Also, you could of course try and change your keyboard's settings so that modulation doesn't affect output volume (which is a bit unusual anyway because usually you would use Expression CC#11 or MIDI Volume CC#7 for that)