Fixed the 'Edit Plugin' context menu option from breaking when trying to decide whether or not to display.