Update template_registry.py fixed sharetarget check against exploit reported

more info on the subject can be found here https://forum.litecoin.net/index.php/topic,4002.0.html