check for empty m_aStates

valgrind + bff

Change-Id: Ib818d508e10877a845b733c4aa223d1e2cbbc05e