Fix for IZPACK-943

Check the URL for null before creating the ImageIcon. Add a loadIcon()
method to factorize code.