Add error check for bricks which do not define the resource they are named after