In case the moon svg does not exist...

Now there will be no error if the script is included and there is no moon object.