Update Plugin.php

Added a check to see if a current page was found. Had to use for when using an iFrame instead of using {{ content }}