check returned maui state for null