* fix #2613 with if statement, and null for pointer value rather than referencing it when undefined * removed if statement, since not needed, and updated documentation to note the null pointer property in certain conditions.