Added checks for Limit and Skip values not null

HasOwnProperty returns true even when the value of the property is null, which was causing malformed SQL queries. IE: "WHERE `moodboard`.`project`='2' LIMIT null LIMIT 18446744073709551610 OFFSET null "