Fix for #1905: Error null-safe invoking "first" attribute on tuple
Test for #1905: Error null-safe invoking "first" attribute on tuple