LPS-39410 Fixing error when checking layout revisions screen

reviewed by @KocsisDaniel