Update plugin.py

Updating plugin.py to check for the existence of the extras key in the data_dict.
Merge branch 'rikdc-89-extras-check'