Ensure library exists before loading [fixed tracker #1648].