Yes there is, if you comfortable with the disassembly of the sear block. There are notchs on the safety lever inside the pistol that can be deepened using a small round file, which will allow the safety detent block to engage more positively.
In order to do the modification, the sear block / safety assy must be removed from the pistol.
If you are not comfortable removing the sear block assy yourself, then any competent gunsmith could do the mod.
I have multiple M&P with safeties, and I have mod'd all of them to get a more positive feel.