Asset Min: check for an empty $plugin to short out

Resolves a few rare-ish errors.

Worked with @jeherve to resolve.

Ship in 3.1.1 as well.