Throw exception for inaccessible layoutfile

Change-Id: I9f068576b25f6d95874cb3446981445fa43bd82f