fixed the problem that causes a crash on test_innerJoinThreeTables().

SQLTableFormula::getActiveRow() returns empty item data (hasData()
methods is false) when the inner join condition is not satisfied.
SQLTableInnerJoin::getActiveRow() didn't check that of the child
SQLTableFormula. So the crash happens when the child returns
empty item data.