How to restore stock ROM
I can not assure you the method would work or not but after browsing all over I found this satisfying post, hope it will help you too! 

http://www.androidsage.com/2016/02/03/restore-samsung-galaxy-s4-to-stock-lollipop-firmware/

Try it on your own risk :)