Print plugin minor fix.

Repair javascript error when you haven't any active overlay and your base layer is in `ignoreLayers` parameter