Print warning if in production mode and theme compilation is required (#12031)

Change-Id: I59030e7c0133d790f145d31f1614b7e8aaf7c04d