Fix bug where restrictions were checked for an empty plant name. (#489)