Fix issue with uninitialised function arguments (fix #391)