Fix for empty collection check in axes.add_collection

Fixes #1490