FAIMS-468 - refactor the code for invalid table in vector layer