Null pointer when CRS Envelope ins't available

When using different CRS codes sometimes they give a null Envelope.

This change ignores the null pointer that is occurring.