Fix check_plugins dying with certain parameters