Print plugin minor fix.

Repair javascript error when you haven't any active overlay and your base layer is in `ignoreLayers` parameter
Merge pull request #265 from alediator/print_plugin_fix

Print plugin minor fix.