Fix karma error due to undefined variable error.
Compile app.