Fix error when switching from SIL to PIL

Remove the custom code for SIL, if it had been previously added by PIL.