Fixed error when mocking an empty table