Fix initial state handling when setState is defined

This should have been part of 5aea6fa4. There were methods that were not
using the overridden setState method when it is available.