Fail if config.js is invalid

Bug: 66701
Change-Id: I530ee220fb195c11f48c079c6bfcbd14c154ff19