Update layout_head.c
add "ok = false;" for conversion failure
Merge pull request #121 from joshuastray/develop

Update layout_head.c