Safeguard against possible infinite loop when calculating words per line in IMBAlertPopoverViewController

This is a workaround and should be revisited by Peter for a more sound solution