Fixes crash when decorView has no layout params to provide.