Fix HALO crashes

Bugfix for Layout < 0 crash which would kill a couple of apps whose
  content was compromised by smaller displays/dpi's.