Fix bug when calling lua_function<> with a void return type.