Make sure that the script is removed only if it's actually in the page still. Fixes...