Uncaught Server Exception with lot enabled in templates

Hi, i have identified that if a product template has enabled lot it causes an error screen showing the category in the website. How could I solve this? Thanks.

You can see the error example in this GIF:

https://drive.google.com/open?id=1ZBmr8vU5sDT9QkprVJgpGSooAOrGFk-I