I have got the answer of this, as this has been shared in separate thread. For those who will come to this post looking for answer, please refer to below discussion:
https://moodle.org/mod/forum/discuss.php?d=335474
https://moodle.org/mod/forum/discuss.php?d=335474