Plugin in original post updated to version 1.1 which fixes the bug identified by CrazyGhostRider.
Thanks for providing the bug report CrazyGhostRider! You just taught me to review the error logs before releasing a plugin even if the plugin is working as intended.