Fix for problem where webapps that use the security provider fail to sta...

...rtup when the encryption key file can't be created.