[Bug 47189811] fix 'assets rake:precompile failure' bug

Please refer to https://www.pivotaltracker.com/story/show/47189811 to see the detailed bug description.