Refs #9144 fix undefined index error if database table is empty
Refs #9144 tweak travis configuration