Fix installation with a theme that requires a plugin

This fixes habari/habari#591