Nil prevention in getHP