Instead of reverting when the receiver address is address(0), the function can be modified to automatically redirect the rewards to the owner of the position. This ensures that rewards are not lost and avoids unnecessary reverts while maintaining flexibility. 
getPeriodReward()
Add this line to getPeriodReward() function like collect() function did.
