bugfix: Fix crash when input plugin disabled.

Not the most elegant solution but gets the job done for now.