show empty function table error only in debug mode