Added aditional sanity check for inf values that were causing occasional auto layout crashes.