Unless you sit and watch 24/7, you're not going to be able to catch every molt. And, as stated above, the shrimp will be continuously harassed by the polys until they're eaten, ripped of all appendages, or starve themselves while hiding from the polys.
Best recommendation is to either divide the tank from the start or get another tank so as to keep the fish and shrimp separated.