Fixed bug not drawing a layer if a field is null