cpu-boost: sync with the latest code.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Prevent null pointer excepions.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>