Protect against no GC information

The call to getLastGcInfo() can return null if no garbage collection has happened yet.