Very few basses have pups near the neck. Gibson spring to mind.
The purpose of having the foam under the strings near the bridge is damp the vibration and stop the strings ringing. Needs to be just the right thickness of foam so you may need to experiment. Lots of basses have had foam mutes over the years, Ricks, Musicman and of course the original Fenders had foam under the bridge cover.